<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
</head>
<body>
  <h1>Hello，<div th:if="${user}" th:text="${user.name}"></div></h1>
  <a href="login">登录</a>
  <a href="register">注册</a>
</body>
</html>